<?php
namespace app\admin\controller;

use app\admin\logic\OrderLogic;
use think\facade\Request;
use think\facade\View;

class Order{
    public function orderList(){
        //拼接where条件
        $where=OrderLogic::oWhere();
        //留值储存
        $data=OrderLogic::oData();
        View::assign($data);
        //查询数据
        $order=\app\admin\model\Order::getOrderList($where);

        View::assign("order",$order);
        //查询状态
        $status=\app\admin\model\Order::getStatus($where);
        View::assign('status',$status);
        // echo  date("Y-m-d H:i:s",1388043112);
        return View::fetch();
    }

    public function orderDetail(){
        return View::fetch();
    }
}